package model

import (
	"time"
)

/*
@author：zjy
@Emial:734219310@qq.com
*/
type ListData struct {
	ID         uint      `gorm:"primary_key;autoIncrement"`
	Name       string    `form:"name" json:"name" gorm:"name"`
	Price      float64   `form:"price" json:"price" gorm:"price"`
	Level      int       `form:"level" json:"level" gorm:"level"`
	OnSale     bool      `form:"onSale" json:"onSale" gorm:"on_sale"`
	Remark     string    `form:"remark" json:"remark" gorm:"remark"`
	CreateTime time.Time `form:"createTime" json:"createTime" gorm:"create_time"`
}

type DecTitle struct {
	ID         uint   `gorm:"primary_key;autoIncrement"`
	Major      string `form:"major" json:"major" gorm:"major"`
	Title      string `form:"title" json:"title" gorm:"title"`
	Teacher1   string `form:"teacher1" json:"teacher1" gorm:"teacher1"`
	Teacher2   string `form:"teacher2" json:"teacher2" gorm:"teacher2"`
	Type       string `form:"type" json:"type" gorm:"type"`
	Resource   string `form:"resource" json:"resource" gorm:"resource"`
	Desc       string `form:"desc" json:"desc" gorm:"desc"`
	ApplyMajor string `form:"apply_major" json:"apply_major" gorm:"apply_major"`
	Place      string `form:"place" json:"place" gorm:"place"`
	Repetition string `form:"repetition" json:"repetition" gorm:"repetition"`
	Background string `form:"background" json:"background" gorm:"background"`
	Require    string `form:"require" json:"require" gorm:"require"`
}
